package com.example.demo.controller;

import com.example.demo.model.ExtConfInterface;
import com.example.demo.service.ExtConfInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: wangtuo
 * @Date: 2020/07/08/22:28
 * @Description:
 */
@RestController
@RequestMapping("/edms/user")
public class ExtConfInterfaceController {

    @Autowired
    private ExtConfInterfaceService service;

    @RequestMapping(value = "/getUserInfo",method = RequestMethod.GET)
    public List<ExtConfInterface> getUserInfo() {
        List<ExtConfInterface> user = service.selectAll();
        return user;
    }


}
